package com.chinasoft.tw.service.zdh;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class Zdh implements TrueWord {
    String name;
    List<String> wordList = new ArrayList<>();
    Random random = new Random();

    public Zdh() {
        this.name = "朱丁昊";
        wordList.add("明天下雨 ！");
        wordList.add("明天不上课 ！");
    }
    @Override
    public Info getTrueWord() {
        return new Info(name, wordList.get(random.nextInt(wordList.size())));
    }
}
